package ysc.cqnu.operdb.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import ysc.cqnu.operdb.entity.ResultData;
import ysc.cqnu.operdb.service.UpdateUserInfoNoImgService;
import ysc.cqnu.operdb.serviceImpl.UploadImgServiceImpl;

@CrossOrigin
@Controller
@ResponseBody
public class UpdateUserInfoNoImgController {
    @Autowired
    private ResultData resultData;
    @Autowired
    private UpdateUserInfoNoImgService updateUserInfoNoImgService;
    @RequestMapping(value = "/updateUserInfoNoImg" ,method = RequestMethod.POST)
    public ResultData updateUserInfoNoImg(@RequestParam(value = "name",defaultValue = "moren") String name,
                             @RequestParam(value = "age") String age, @RequestParam(value = "sex") String sex,
                             @RequestParam(value = "emile") String emile) {
        System.out.println("未修改头像个人信息修改前端已连接");
        resultData = updateUserInfoNoImgService.updateUserInfoNoImgService(name,age,sex,emile);
        return resultData;
    }
}
